{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$smarty.const.HOST_BACKEND}user/index">{$language.title.user}</a> &raquo; {$language.ahref.update}</h2>
        <form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}user/saveedit" class="ui">
           <input type="hidden" name="puserid" id="puserid" value="{$row.userid}"/>
            <ul>
            	{if isset($smarty.session.USER_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.USER_ERROR}
                    </li>
                {/if}
            	<li>
                	<label for="pusername">{$language.label.username}:</label>
						<strong class="hint">{$row.username}</strong>
                </li>
                
                
                <li>
                	<label for="pfirstname">{$language.label.firstname} <span class="required">*</span>:</label>
                    <div class="txt">
                		<input type="text" class="text" name="pfirstname" id="pfirstname" value="{if isset($smarty.session.USER_POST.pfirstname)}{$smarty.session.USER_POST.pfirstname|escape}{else}{$row.firstname}{/if}" autocomplete="false" />
                   	</div>
                </li>
                <li>
                	<label for="plastname">{$language.label.lastname}: <span class="required">*</span>:</label>
                    <div class="txt">
                		<input type="text" class="text" name="plastname" id="plastname" value="{if isset($smarty.session.USER_POST.plastname)}{$smarty.session.USER_POST.plastname|escape}{else}{$row.lastname}{/if}" />
                   	</div>
                </li>
                <li>
                	<label for="pbirthtday">{$language.label.birthtday}:</label>
                    <div class="txt">
                		<input type="text" class="text" name="pbirthtday" id="pbirthtday" value="{if isset($smarty.session.USER_POST.pbirthtday)}{$smarty.session.USER_POST.pbirthtday|escape}{else}{$birthday}{/if}" />
                   	</div>
                </li>
                <li>
                	<label for="pgender">{$language.label.gender}:</label>
                    <div class="txt">
                		<select name="pgender" id="pgender">
                        	{foreach key=i item=item from=$language.gender}
                                	<option value="{$i}" {if isset($smarty.session.USER_POST.pgender) && $smarty.session.USER_POST.pgender == $i}selected="selected"{/if}>{$item}</option>
                            {/foreach}
                        </select>
                   	</div>
                </li>
                <li>
                	<label for="pcountry">{$language.label.country}:</label>
                    <div class="txt">
                		<select name="pcountry">
                            {foreach key=key item=item from=$language.country}
                                <option value="{$key}">{$item}</option>
                            {/foreach}
                    </select>
                   	</div>
                </li>
                <li>
                	<label for="pprole">{$language.label.prole}:</label>
                    <div class="txt">
                		<select name="pprole">
                            {foreach key=key item=item from=$language.role}
                                <option value="{$key}">{$item}</option>
                            {/foreach}
                    </select>
                   	</div>
                </li>
                <!--<li>
                	<label for="psrc">{$language.label.psrc}:</label>
                    <div class="txt">
                		<select name="psrc">
                            {foreach key=key item=item from=$language.psrc}
                                <option value="{$key}">{$item}</option>
                            {/foreach}
                    </select>
                   	</div>
                </li>-->
                <li>
                 	<button type="submit"><strong>{$language.btn.save}</strong></button>
                    <button type="reset"><strong>{$language.btn.reset}</strong></button>
                </li>
            </ul>
        </form>
    </article> 
</section>
{include file="common/footer.tpl"}
                
